<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
<!-- 这里引入导航信息header.tpl -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>招商财富产品线新增</title>

<script type="text/javascript">
	var targetPath = '<%=context%>' +'business/product/';
	//默认加载
	$(function(){
		//把访问路径传到js
		setPathPrefix(targetPath);
	});
</script>

</head>

<body class="sub-page">

	<jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
		<jsp:param name="currentActive" value="cpcs" />
	</jsp:include>
	
	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;招商财富产品线</p>
		<p class="current">&gt;新增</p>
	</div>
	<div class="container">
		<div class="page-content">
			<form id="addForm" name="addForm" role="addForm" class="form-horizontal" method="post" >
				
				<div class="page-body">
				
					<div class="form-group">
					  <label class="col-sm-2 control-label">产品简称<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="产品简称" class="form-control" name="subFundSname" id="subFundSname" value="" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">产品全称<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="产品全称" class="form-control" name="subFundLname" id="subFundLname" value="" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">发布时间<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="发布时间" class="form-control" name="publishTime" id="publishTime" value="" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">风险级别<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <select class="select2" id="prdRiskLevel" name="prdRiskLevel">
					    	<option value=""></option>
					    	<wasp:dictOptions dctRootType="RISK_LEVEL" initValue=""></wasp:dictOptions>
					    </select>
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">产品分类<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <select class="select2" id="prdCategory" name="prdCategory">
					    	<option value=""></option>
					    	<wasp:dictOptions dctRootType="PRD_CATEGORY" initValue=""></wasp:dictOptions>
					    </select>
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">存续期限(年)<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="存续期限" class="form-control" name="prdTerm" id="prdTerm" value="" />
					  </div>
					</div>

					<div class="form-group">
					  <label class="col-sm-2 control-label">运作模式<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <select class="select2" id="operationMode" name="operationMode">
					    		<option value="">请选择</option>
								<option value="1">开放式</option>
								<option value="0">封闭式</option>
					    </select>
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">流动性安排<!-- <span class="text-danger">*</span> --></label>
					  <div class="col-sm-10 form-inner">
					    <select class="select2" id="openFrequency" name="openFrequency" disabled="disabled">
				    		<option value="">请选择</option>
							<c:forEach items="${openFrequencyDicts }" var="dict">
								<option value='${dict.dctValue }' <c:if test="${projectVo.openFrequency eq dict.dctValue }">selected="selected"</c:if>>${dict.dctName }</option>
							</c:forEach>
					    </select>
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">产品规模(元)<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="产品规模" class="form-control" name="expectedRaiseAmt" id="expectedRaiseAmt" value="" onblur="fmtNum152('expectedRaiseAmt')" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">初始份额面值<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="初始份额面值" class="form-control" name="initParValue" id="initParValue" value="" onblur="fmtNum34('initParValue')"/>
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">最低认购金额(个人)<!-- <span class="text-danger">*</span> --></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="最低认购金额(个人)" class="form-control" name="indBookStart" id="indBookStart" value="" onblur="fmtNum132('indBookStart')"/>
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">最低认购金额(机构)<!-- <span class="text-danger">*</span> --></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="最低认购金额(机构)" class="form-control" name="insBookStart" id="insBookStart" value=""  onblur="fmtNum132('insBookStart')"/>
					  </div>
					</div>
					
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">产品收益分配<!-- <span class="text-danger">*</span> --></label>
					  <div class="col-sm-10 form-inner">
					    <select class="select2" id="fitCycle" name="fitCycle" >
				    		<option value="">请选择</option>
							<c:forEach items="${yieldAllotTypeList }" var="dict">
								<option value='${dict.dctValue }' <c:if test="${prdInfoVo.fitCycle eq dict.dctValue }">selected="selected"</c:if>>${dict.dctName }</option>
							</c:forEach>
					    </select>
					  </div>
					</div>
					
					<div class="model-content">
						<div class="form-group">
			            	<label class="col-sm-2 control-label">投资范围</label>
				            <div class="col-sm-10 form-inner">
			 					<textarea rows="4" class="form-control" id="investSpec" name="investSpec"></textarea>
							</div>
				        </div>
					</div>
					
					<div class="model-content">
						<div class="form-group">
			            	<label class="col-sm-2 control-label">投资策略</label>
				            <div class="col-sm-10 form-inner">
			 					<textarea rows="4" class="form-control" id="investStrategy" name="investStrategy"></textarea>
							</div>
				        </div>
					</div>
					
					<div class="model-content">
						<div class="form-group">
			            	<label class="col-sm-2 control-label">风险收益特征</label>
				            <div class="col-sm-10 form-inner">
			 					<textarea rows="4" class="form-control" id="riskYield" name="riskYield"></textarea>
							</div>
				        </div>
					</div>
					
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">子产品过程状态<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <select class="select2" id="subPrdPrcStatus" name="subPrdPrcStatus">
					    	<option value=""></option>
					    	<wasp:dictOptions dctRootType="SUB_PRD_STAT" initValue=""></wasp:dictOptions>
					    </select>
					  </div>
					</div>
					
					
					<div class="form-group">
	                 	<label class="col-sm-2 control-label">产品标识</label>
	                    <div class="col-sm-10 form-inner">
	                    	<div class="sub-sel-cont fl">
	                    		<c:forEach var="dictDto" items="${prdFlags}">
	                    			<label class="fl">
		                    			<div class="icheckbox_square-green flag" value="${dictDto.dctValue }" onclick="choosePrdFlag(this);">
			                    			<ins class="iCheck-helper"></ins>
		                    			</div>${dictDto.dctName }
	                    			</label>
					            </c:forEach>
	                        </div>
	                        <input type="hidden" id="prdFlag" name="prdFlag">
	                 	</div>
	                 </div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">业绩比较基准<!-- <span class="text-danger">*</span> --></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="业绩比较基准" class="form-control" name="expectedClientYield" id="expectedClientYield" value="" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">退出费率<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="退出费率" class="form-control" name="breachFeeRate" id="breachFeeRate" value="" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">认购费率<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="认购费率" class="form-control" name="bookFeeRate" id="bookFeeRate" value="" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">申购费率<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="申购费率" class="form-control" name="declareFeeRate" id="declareFeeRate" value="" />
					  </div>
					</div>
					
					<div class="form-group">
					  <label class="col-sm-2 control-label">赎回费率<span class="text-danger">*</span></label>
					  <div class="col-sm-10 form-inner">
					    <input type="text" placeholder="赎回费率" class="form-control" name="redeemFeeRate" id="redeemFeeRate" value="" />
					  </div>
					</div>
					
					
					
				
					<div class="model">
						<div class="model-head">
							<span class="head-boder-left"></span>
							<h2>附件</h2>
						</div>
						<div class="model-content clear">
							<!-- 附件展示上传 -->
							<jsp:include page="../../system/sys/attach/attachView.jsp">
								<jsp:param name="attachList" value="${attachList}"/>
								<jsp:param name="resourceId" value="${prdInfoVo.subPrdCode}"/>
								<jsp:param name="module" value="prdInfoDetailView" />
								<jsp:param name="hasPermission" value="true" />
								<jsp:param name="resourceSign" value="SUB_PRD_LINE"/>
								<jsp:param name="resourceSignModule" value="archiveManagementAdd"/>
								<jsp:param name="hidAttIdField"  value="{{attId}}"/>
							</jsp:include>
						</div>
					</div>
				</div>
				<div class="page-footer">
					<button type="button" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="submitForm()">提交</button>
					<button type="button" class="btn btn-link btn-w-xs" onclick="window.close();">取消</button>
				</div>
			
			</form>
		</div>
	</div>

<script type="text/javascript" src="<%=context%>resources/modules/business/product/addPrdInfo.js?r=<%=Math.random()%>"></script>

</body>
</html>